<?php
namespace app\api\controller;

use tencentcloud\TlsSig;

class TlsSigController extends BaseController
{
  /**
   * 获取usersig
   * @throws \Exception
   */
  public function usersig(){
    $userId = $this->request->param('user_id');
    $tlsSig = new TlsSig();
    $userSig = $tlsSig->genSig($userId);
    $this->result($userSig);
  }
}